<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var person = {
				firstname: "何",
				lastname: "心",
				age: 18,
				fullName1: function() {
					return this.firstname + this.lastname;
				}
			}
			/* console.log(person);
			console.log(person.firstname);
			console.log(person.lastname);
			console.log(person.age);
			console.log(person.fullName1()); */
			person.address = "废都西安";
			person.fullName22 = function() {
				console.log(this)
				return this.firstname + this.lastname + "," + this.age;


			}
			console.log(person.fullName22());
			person.fullName2 = () => {
				console.log(person)
				return person.firstname + person.lastname + "," + person.age;
			}
			console.log(person.fullName2())
		</script>
	</head>
	<body>
		<h3>人的对象:firstname,lastname,age,fullName()</h3>
	</body>
</html>
